﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GraffitiExtras.Utility
{
    [Serializable]
    public class Poll
    {
        public int PollSize;
        public string PollName;
        public List<PollItem> PollItems;
        public List<string> IPAddresses;

        public Poll()
        {
            PollItems = new List<PollItem>();
            IPAddresses = new List<string>();
            PollSize = -1;
        }

    }

    [Serializable]
    public class PollItem
    {
        public string PollItemGuid;
        public string PollItemName;
        public int PollItemValue;

        public PollItem(string _PollItemGuid, string _PollItemName, int _PollItemValue)
        {
            PollItemGuid = _PollItemGuid;
            PollItemName = _PollItemName;
            PollItemValue = _PollItemValue;
        }
        public PollItem(string _PollItemGuid, string _PollItemName)
        {
            PollItemGuid = _PollItemGuid;
            PollItemName = _PollItemName;
            PollItemValue = 0;
        }

        public PollItem()
        {
            PollItemGuid = "";
            PollItemName = "";
            PollItemValue = 0;
        }
    }
}
